package com.liyi.letter.processing.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2023-06-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "respondent", schema = "petition_processing")
public class Respondent implements Serializable {

    /**
     * 受访对象信息表id
     */
    @Id(keyType = KeyType.Auto)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 受访对象单位名
     */
    private String name;

    /**
     * 受访对象负责人
     */
    private Long employeeId;

    /**
     * 受访对象地址
     */
    private String address;

    /**
     * 受访对象联系方式
     */
    private String phone;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date createdTime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date updatedTime;

}
